package com.chorye.blog.controller.admin.sys;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Company: 北京根网科技有限公司
 * @Author JiangYy
 * @Title: LoginController
 * @Description: TODO
 * @Date 2019/1/25 20:54
 */
@Controller
public class LoginController {

    /**
     * 前往登录页面
     *
     * @return 登录页
     */
    @RequestMapping("/login")
    public String login() {
        return "sys/login";
    }

    /**
     * 登录
     * @param username
     * @param password
     */
    @RequestMapping("/doLogin")
    @ResponseBody
    public void doLogin(String username, String password) {
        System.out.println(username + "," + password);
    }
}
